package com.heima.client.user;

import com.heima.model.common.pojos.user.ApUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "leadnews-user")
public interface IUserClient {

    @GetMapping("/api/v1/user/{id}")
     public ApUser getUser(@PathVariable("id") Integer id);
}
